var path = require('path');
var express = require('express');
var app = express();
app.use(express.static(path.join(__dirname,'dist')));

app.get('/data', function (req,res) {
    res.send({'key':'value'})
});
// 创建服务端
app.listen('6607', function () {
    console.log('http://localhost:6607;启动服务');
});